import javax.swing.*;
import java.util.Random;

public class menu {
    public static void dinner(){
        Random random = new Random();
        int place = random.nextInt(3)+1;
        int dish = random.nextInt(11)+1;
        switch (place) {
            case 1 -> {
                System.out.println("南一......");
                switch (dish) {
                    case 1 -> System.out.println("炒饭");
                    case 2 -> System.out.println("拌粉");
                    case 3 -> System.out.println("水煮肉片");
                    case 4 -> System.out.println("牛肉拉面");
                    case 5 -> System.out.println("烤盘饭");
                    case 6 -> System.out.println("黄焖鸡");
                    case 7 -> System.out.println("米线");
                    case 8 -> System.out.println("馄饨");
                    case 9 -> System.out.println("滑蛋饭");
                    case 10 -> System.out.println("兰州拉面");
                    default -> System.out.println("别吃了......");
                }
            }
            case 2 -> {
                System.out.println("南二......");
                switch (dish) {
                    case 1 -> System.out.println("炒饭");
                    case 2 -> System.out.println("拌粉");
                    case 3 -> System.out.println("水煮肉片");
                    case 4 -> System.out.println("热干面");
                    case 5 -> System.out.println("渔粉");
                    case 6 -> System.out.println("黄焖鸡");
                    case 7 -> System.out.println("米线");
                    case 8 -> System.out.println("馄饨");
                    case 9 -> System.out.println("手抓饼");
                    case 10 -> System.out.println("猪肚鸡");
                    default -> System.out.println("别吃了......");
                }
            }
            case 3 -> {
                System.out.println("南三......");
                switch (dish) {
                    case 1 -> System.out.println("烤肉饭");
                    case 2 -> System.out.println("拌面");
                    case 3 -> System.out.println("麻辣香锅");
                    case 4 -> System.out.println("铁板炒饭");
                    case 5 -> System.out.println("羊杂面");
                    case 6 -> System.out.println("黄焖鸡");
                    case 7 -> System.out.println("江南小吃");
                    case 8 -> System.out.println("馄饨");
                    case 9 -> System.out.println("五谷渔粉");
                    case 10 -> System.out.println("烤鸭饭");
                    default -> System.out.println("别吃了......");
                }
            }
            default -> System.out.println("别吃了......");
        }
    }
    public static void main(String[] args) {
        //JFrame jf = new JFrame();
        //jf.setTitle("想吃点啥吃点啥吧......");
        //jf.setBounds(300,300,400,400);
        //jf.setVisible(true);
        //jf.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);*/
        dinner();
    }
}
